<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
  <head>
    <title>
    </title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <link rel="stylesheet" href="css/ui-btn.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
    <link rel="stylesheet" href="css/ui-res.css">
    <style>
        input{
            color: black;
            padding: 1px 6px;
            margin-left:6px;
        }
        input[type="text"]{
            padding: .2em .4em;
            margin:.4em .6em;
            font-size:1em;
        }
        input[type="button"]{
            padding: .6em .8em;
            margin:.4em .6em;
            font-size:1.2em;
        }
    </style>
    <script src="js/zy_control.js">
    </script>
    <script src="js/main.js">
    </script>
    <script type="text/javascript">
        window.uexOnload = function(type){
            uexWindow.subscribeChannelNotification("1", "easemobDemoGlobalPost");
           uexWindow.easemobDemoGlobalPost=globalPost;
        }
    

    
    //[3.1]
    function getConversationByName(){
        var username = document.getElementById("getConversationByNameusername").value;
        var chatType = document.getElementById("getConversationByNamechatType").value;
        uexEasemob.getConversationByName('{"username":"'+username+'","chatType":"'+chatType+'"}');
    }
    
    //[3.3]
    function getMessageHistory(){
        var username = document.getElementById("getMessageHistoryusername").value;
        var chatType = document.getElementById("getMessageHistorychatType").value;
        var startMsgId = document.getElementById("getMessageHistorystartMsgId").value;
        var pagesize = document.getElementById("getMessageHistorypagesize").value;
        uexEasemob.getMessageHistory('{"username":"'+username+'","chatType":"'+chatType+'","startMsgId":"'+startMsgId+'","pagesize":"'+pagesize+'"}');
    }
    
    //[3.5]
    function getUnreadMsgCount(){
        var username = document.getElementById("getUnreadMsgCountusername").value;
        var chatType = document.getElementById("getUnreadMsgCountchatType").value;
        uexEasemob.getUnreadMsgCount('{"username":"'+username+'","chatType":"'+chatType+'"}');
    }
    
    //[3.7]
    function resetUnreadMsgCount(){
        var username = document.getElementById("resetUnreadMsgCountusername").value;
        var chatType = document.getElementById("resetUnreadMsgCountchatType").value;
        uexEasemob.resetUnreadMsgCount('{"username":"'+username+'","chatType":"'+chatType+'"}');
    }
    
    //[3.8]
    function resetAllUnreadMsgCount(){
        uexEasemob.resetAllUnreadMsgCount('');
    }
    
    //[3.9]
    function getMsgCount(){
        var username = document.getElementById("getMsgCountusername").value;
        uexEasemob.getMsgCount('{"username":"'+username+'"}');
    }
    
    //[3.11]
    function clearConversation(){
        var username = document.getElementById("clearConversationusername").value;
        uexEasemob.clearConversation('{"username":"'+username+'"}');
    }
    
    //[3.12]
    function deleteConversation(){
        var username = document.getElementById("deleteConversationusername").value;
        var chatType = document.getElementById("deleteConversationchatType").value;
        uexEasemob.deleteConversation('{"username":"'+username+'","chatType":"'+chatType+'"}');
    }
    
    //[3.13]
    function removeMessage(){
        var username = document.getElementById("removeMessageusername").value;
        var msgId = document.getElementById("removeMessagemsgId").value;
        var chatType = document.getElementById("removeMessagechatType").value;
        uexEasemob.removeMessage('{"username":"'+username+'","msgId":"'+msgId+'","chatType":"'+chatType+'"}');
    }
    
    //[3.14]
    function deleteAllConversation(){
        uexEasemob.deleteAllConversation('');
    }
    
    //[3.15]
    function getChatterInfo(){
        uexEasemob.getChatterInfo('');
    }

    //[3.17]
    function getTotalUnreadMsgCount(){
        uexEasemob.getTotalUnreadMsgCount();
    }
    function getRecentChatters(){
        uexEasemob.getRecentChatters();
    }

       </script>
</head>
<body class="um-vp " ontouchstart>
    <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh t-wh ub" style="background: #27A73F;">
                <div class="umw4 ub ub-ac ub-pc" ontouchstart="zy_touch()" onclick="closeWin()">
                    <div ontouchstart="zy_touch('btn-act')" class="btn uba b-bla uinn5 c-blu c-m1 uc-a t-wh" style="background: -webkit-gradient(linear,0 0,0 100%,from(#FFCD00),color-stop(50%,#FFBC00),color-stop(50%,orange));border: 1px solid #FFA700;-webkit-border-radius: 8px;  text-align: center;color: #712000;  display: block; font-size: 1em; padding: 0.2em;">返回</div>
                </div>
                <h1 class="ut ub-f1 ulev0 ut-s tx-c" tabindex="0">Conversation</h1>
                <div class="umw4" ontouchstart="zy_touch()" onclick="">
                <!--插入按钮控件-->
                </div>
     </div>
     <!--header结束--><!--content开始-->
     <div id="content" class="ub-f1 tx-l t-bla" style="">
         
     <div class="conbor">
        <div class="consj" id="topDiv">
            <div id='globalPostArea'>全局广播显示区域</div><br><br>
            
            
             <div> </div><div>======Conversation==========</div>
             <div> </div><span>getConversationByName</span>
             <div>username:</div><input class="textbox" type="text" id="getConversationByNameusername" value="appcanuser2"></input>
             <div>chatType:</div><input class="textbox" type="text" id="getConversationByNamechatType" value="0"></input>
             <input class='btn' type='button' value='调用接口' onclick='getConversationByName()'></input>
             
             <div> </div><span>getMessageHistory</span>
             <div>username:</div><input class="textbox" type="text" id="getMessageHistoryusername" value="appcanuser2"></input>
             <div>chatType:</div><input class="textbox" type="text" id="getMessageHistorychatType" value="0"></input>
             <div>startMsgId:</div><input class="textbox" type="text" id="getMessageHistorystartMsgId" value=""></input>
             <div>pagesize:</div><input class="textbox" type="text" id="getMessageHistorypagesize" value=""></input>
             <input class='btn' type='button' value='调用接口' onclick='getMessageHistory()'></input>
             
             <div> </div><span>getUnreadMsgCount</span>
             <div>username:</div><input class="textbox" type="text" id="getUnreadMsgCountusername" value="appcanuser2"></input>
             <div>chatType:</div><input class="textbox" type="text" id="getUnreadMsgCountchatType" value="0"></input>
             <input class='btn' type='button' value='调用接口' onclick='getUnreadMsgCount()'></input>
             
             <div> </div><span>resetUnreadMsgCount</span>
             <div>username:</div><input class="textbox" type="text" id="resetUnreadMsgCountusername" value="appcanuser2"></input>
             <div>chatType:</div><input class="textbox" type="text" id="resetUnreadMsgCountchatType" value="0"></input>
             <input class='btn' type='button' value='调用接口' onclick='resetUnreadMsgCount()'></input>
             
             <div> </div><span>resetAllUnreadMsgCount</span>
             <input class='btn' type='button' value='调用接口' onclick='resetAllUnreadMsgCount()'></input>
             
             <div> </div><span> getMsgCount</span>
             <div>username:</div><input class="textbox" type="text" id="getMsgCountusername" value="appcanuser2"></input>
             <input class='btn' type='button' value='调用接口' onclick='getMsgCount()'></input>
             
             <div> </div><span>clearConversation</span>
             <div>username:</div><input class="textbox" type="text" id="clearConversationusername" value="appcanuser2"></input>
             <input class='btn' type='button' value='调用接口' onclick='clearConversation()'></input>
             
             <div> </div><span>deleteConversation</span>
             <div>username:</div><input class="textbox" type="text" id="deleteConversationusername" value="appcanuser2"></input>
             <div>chatType:</div><input class="textbox" type="text" id="deleteConversationchatType" value="0"></input>
             <input class='btn' type='button' value='调用接口' onclick='deleteConversation()'></input>
             
             <div> </div><span>removeMessage</span>
             <div>username:</div><input class="textbox" type="text" id="removeMessageusername" value="appcanuser2"></input>
             <div>msgId:</div><input class="textbox" type="text" id="removeMessagemsgId" value=""></input>
             <div>chatType:</div><input class="textbox" type="text" id="removeMessagechatType" value="0"></input>
             <input class='btn' type='button' value='调用接口' onclick='removeMessage()'></input>
             
             <div> </div><span>deleteAllConversation</span>
             <input class='btn' type='button' value='调用接口' onclick='deleteAllConversation()'></input>
             
             <div> </div><span>getChatterInfo</span>
             <input class='btn' type='button' value='调用接口' onclick='getChatterInfo()'></input>
             <div> </div><span>getTotalUnreadMsgCount</span>
             <input class='btn' type='button' value='调用接口' onclick='getTotalUnreadMsgCount()'></input>
             
             <div> </div><span>getRecentChatters</span>
             <input class='btn' type='button' value='调用接口' onclick='getRecentChatters()'></input>
        
        <div>======回调区域==========</div>
        <div id='TestCallBack'>原本内容</div>
        <div id='TestData'>原本内容</div>
        <div>======回调区域==========</div>
    </div>
    </div>
</body>
<script>

</script>
</html>
